﻿using System;

namespace HangerSupport
{
	public class Label_Define
	{
		public Label_Define()
		{
			this.m_strPre = "HS-";
			this.m_strNo = "1";
			this.m_nPosType = 4;
			this.m_strTypeView = "001";
		}

		public string GetLabelTol()
		{
			string text = this.m_strPre;
			int num = int.Parse(this.m_strNo);
			bool flag = num.ToString() != this.m_strNo;
			if (flag)
			{
				text += this.m_strNo;
			}
			else
			{
				bool flag2 = this.m_strTypeView.Length > 1;
				if (flag2)
				{
					text += num.ToString("D" + this.m_strTypeView.Length.ToString());
				}
				else
				{
					text += num.ToString();
				}
			}
			return text;
		}

		public long GetNO()
		{
			return long.Parse(this.m_strNo);
		}

		public void SetNO(long nNO)
		{
			this.m_strNo = nNO.ToString();
		}

		public string m_strPre;

		public string m_strNo;

		public string m_strTypeView;

		public int m_nPosType;
	}
}
